<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let arr = [1, 2, 3]
        // let arr1 = [4, 5, 6]
        // // arr = [1, 2, 3, ...arr1]
        // arr.push(...arr1)
        // let arr2 = [...arr, ...arr1]
        // console.log(arr, arr2);
        // let max = Math.max(...arr)
        // console.log(max);
        // const obj = {
        //     0: 1,
        //     1: 2,
        //     2: 3,
        //     3: 4,
        //     length: 4
        // }
        let arr = null
        function fn() {
            arr = arguments
        }
        fn(1, 2, 3, 4, 5, 6, 7, 8, 9)
        let newArr = [...arr]
        console.log(arr)
        console.log(newArr)
    </script>
</body>

</html>